#ifndef __DRIVERS_VIDEO_H__
#define __DRIVERS_VIDEO_H__

/**
 *  drivers/video.h
 *  ovladac pro praci s monitorem
 */

#include <asm.h>
#include <types.h>

#define BLACK             (0)   /* dark colors */
#define BLUE              (1)
#define GREEN             (2)
#define CYAN              (3)
#define RED               (4)
#define MAGENTA           (5)
#define BROWN             (6)
#define LIGHTGRAY         (7)
#define DARKGRAY          (8)  /* light colors */
#define LIGHTBLUE         (9)
#define LIGHTGREEN        (10)
#define LIGHTCYAN         (11)
#define LIGHTRED          (12)
#define LIGHTMAGENTA      (13)
#define YELLOW            (14)
#define WHITE             (15)

/**
 *  TEXT_COL
 *  globalni promenna urcujici barvu textu;
 *  primarne urceno pro funkci putch()
 */
unsigned char TEXT_COL = 0x07;

void putch(char s);
void cursor(bool stat);
void getxy(int *x, int *y);
void gotoxy(char x, char y);
void vidmode(int mode);
void textcolor(unsigned char col);
void prowdown(int rows, int mode);
void prowup(int rows, int mode);

#include <source/drivers/video.c>

#endif
